<div  class="am-u-sm-12 widget" style="margin:10px ;">
	<form class="am-form-inline tpl-form-border-form" action="" method="get">
		<div class="am-u-sm-12">
			<div class="am-u-sm-6 cl-p" >
				<div class="am-form-group am-u-sm-6 cl-p">
					<label for="user-email" class="am-u-sm-4 am-form-label am-text-truncate">维修开始时间:</label>
					<div class="am-u-sm-8 cl-p">
						<input type="text" name="start_date" class="am-form-field tpl-form-no-bg start_date"  value="{$Think.get.start_date}" placeholder="维修开始时间" data-am-datepicker="" readonly="">
					</div>
				</div>
				<div class="am-form-group am-u-sm-6 cl-p">
					<label for="user-email" class="am-u-sm-4 am-form-label am-text-truncate">维修结束时间:</label>
					<div class="am-u-sm-8 cl-p">
						<input type="text" name="end_date" class="am-form-field tpl-form-no-bg end_date"  value="{$Think.get.end_date}" placeholder="维修结束时间" data-am-datepicker="" readonly="">
					</div>
				</div>
			</div>
			<div class="am-form-group am-u-sm-3">
				<label for="user-name" class="am-u-sm-4 am-form-label">车牌号:</label>
				<div class="am-u-sm-8 cl-p">
					<input type="hidden" class="CarId" name="car_id" value="{$Think.get.car_id}" />
					<input type="text" class="am-form-field tpl-form-no-bg  car_number" style="line-height: 21px;" value="{$Think.get.number}" placeholder="点击选择车辆" readonly="">
				</div>
			</div>
			<div class="am-u-sm-3 cl-p" >
				<button type="submit" class="am-btn am-btn-sm am-btn-primary am-radius" style="margin-top: -2px;">查询</button>
				<a href="{:url('add')}"  class="am-btn am-btn-sm am-btn-primary am-radius" style="margin-top: -2px;">添加记录</a>
			</div>
		</div>
	</form>
	<div style="padding: 10px;" class="am-u-sm-12">
		<div><button style="float: right;" type="button" class="am-btn am-btn-default am-radius am-btn-xs" style="margin-top: -2px;">导出文件</button></div>
		<table width="100%" class="am-table am-table-compact am-text-nowrap tpl-table-black " >
			<thead>
				<tr>
					<th>编号</th>
					<th>车牌号</th>
					<th>开始时间</th>
					<th>结束时间</th>
					<th>地点</th>
					<th>负责人</th>
					<th>项目</th>
					<th>提醒</th>
					{if $op == 'search'}
					{else/}
					<th>操作</th>
					{/if} 
				</tr>
			</thead>
			<tbody>
				{foreach $list as $key => $item}
				<tr data-id="{$item.maintenance_record_id}">
					
					<td>{$item.numbers}</td>
					<td><a href="{:url('car/detail',['car_id'=>$item['car_id'] ])}?service=1">{$item.number}</a></td>
					<td>{$item.start_date}</td>
					<td>{$item.end_date}</td>
					<td>{$item.address}</td>
					<td>{$item.leader}</td>
					<td>{$item.service_type==1?'维修':'保养'}</td>
					<td>{$item.remind}</td>
					{if $op == 'search'}
					{else/}
					<td data-id="{$item.number}">
						<div class="tpl-table-black-operation">
							<a href="{:url('edit',['maintenance_record_id'=>$item.maintenance_record_id])}">
								<i class="am-icon-pencil"></i> 编辑
							</a>
							<a href="javascript:;" class="tpl-table-black-operation-del delete-list" data-method="delete">
								<i class="am-icon-pencil"></i> 删除
							</a>
						</div>
					</td>
					{/if} 
				</tr>
				{/foreach}
				<!-- more data -->
			</tbody>
		</table>
		<div class="am-u-lg-12 am-cf">

			<div class="am-fr">
				{$pager}
			</div>
		</div>
	</div>

</div>